//
//  CircleImage.swift
//  ClockIn
//
//  Created by enrique leo on 9/8/21.
//

import SwiftUI
///import SwiftyAvata

struct CircleImage: View {
    var image: Image
    var width: CGFloat
    var height: CGFloat
    
    var body: some View {
        VStack{
            Image("chilkoottrail")
                .resizable()
                .frame(width: width, height: height)
                .clipShape(/*@START_MENU_TOKEN@*/Circle()/*@END_MENU_TOKEN@*/)
                .overlay(Circle().stroke(Color.white, lineWidth: 3))
                .shadow(radius: 7)
        }
//        .frame(width: 50, height: 50, alignment: .center)
    }
}

struct CircleImage_Previews: PreviewProvider {
    static var previews: some View {
        CircleImage(image: Image("chilkoottrail"), width: 100, height: 100)
    }
}

